package cn.iocoder.yudao.module.infra.api.ocr.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * OCR 识别请求 DTO
 *
 * @author 芋道源码
 */
@Schema(description = "RPC 服务 - OCR 识别请求 DTO")
@Data
public class OcrRecognizeReqDTO {

    @Schema(description = "OCR 配置 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "OCR 配置 ID 不能为空")
    private Long configId;

    @Schema(description = "文件 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "文件 ID 不能为空")
    private Long fileId;

    @Schema(description = "OCR 类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "ID_CARD")
    @NotNull(message = "OCR 类型不能为空")
    private String ocrType;

}